package base.dao.impl;

import javax.persistence.ManyToOne;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import base.dao.IUserTypeDao;
import entity.UserType;

@Component("userDao")
@Scope("prototype")
public class UserTypeDaoImpl   implements IUserTypeDao{
	UserType userType;
	public UserType findById(int id){
		
		userType=findById(id);
		if(userType!=null){return userType;}
		return null;
		}
	
	@ManyToOne
	public UserType getUserType() {
		return userType;
	}
	public void setUserType(UserType userType) {
		this.userType = userType;
	}

	
}
